package com.joysuch.wwyt.bp.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(value = "物资")
public class BpStoreMaterialBean implements Serializable {

    @ApiModelProperty("物资主键id")
    private Long id;

    @ApiModelProperty("物资名称")
    private String name;

    @ApiModelProperty("物资编码")
    private String code;

    @ApiModelProperty("仓库id")
    private Long houseId;
    @ApiModelProperty("仓库名称")
    private String houseName;

    @ApiModelProperty("物资类型id")
    private Long typeId;
    @ApiModelProperty("物资类型名称")
    private String typeName;

    @ApiModelProperty("物资单位id")
    private Long unitId;
    @ApiModelProperty("物资单位名称")
    private String unitName;

    @ApiModelProperty("存储量")
    private Double amount;

    @ApiModelProperty("是否为危化品:N,Y")
    private String chemProductFlag;

    @ApiModelProperty("危化品id")
    private Long chemProductId;
    @ApiModelProperty("危化品名称")
    private String chemProductName;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("所属区域")
    private Long areaId;
    private String areaName;

    @ApiModelProperty("责任部门")
    private Long responsibleDeptId;
    private String responsibleDeptName;

    @ApiModelProperty("有效期起始")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private java.util.Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty("有效期截止")
    private java.util.Date endTime;

    @ApiModelProperty("性能说明")
    private String performanceDescription;
    @ApiModelProperty("用途说明")
    private String useDescription;
}
